package elearning.json.dao;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import elearning.json.entity.IndexRec;

public class IndexRecDao extends HibernateDaoSupport{

	

	public IndexRec find() {
		String hql="from IndexRec where recId=1";
		List<IndexRec> indexRec = this.getHibernateTemplate().find(hql);
		if(indexRec.size()>0&&indexRec!=null){
			return indexRec.get(0);
		}
		
		return indexRec.get(0);
	}

	public void update(IndexRec iRec) {
		this.getHibernateTemplate().update(iRec);
	}

	
}
